package(default_visibility = ["//visibility:public"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_test",
    "go_library",
)

go_test(
    name = "go_default_test",
    srcs = [
        "addit_test.go",
        "archive_test.go",
        "config_test.go",
        "dao_test.go",
        "delay_test.go",
        "first_pass_test.go",
        "flow_test.go",
        "forbid_test.go",
        "hbase_test.go",
        "history_test.go",
        "mosaic_test.go",
        "new_video_test.go",
        "oper_test.go",
        "porder_test.go",
        "recheck_test.go",
        "stats_test.go",
        "tag_test.go",
        "task_consumer_test.go",
        "task_dispatch_test.go",
        "task_state_test.go",
        "task_test.go",
        "task_weight_config_test.go",
        "type_test.go",
        "user_card_test.go",
        "video_test.go",
        "watermark_test.go",
    ],
    embed = [":go_default_library"],
    rundir = ".",
    tags = ["automanaged"],
    deps = [
        "//app/admin/main/videoup/conf:go_default_library",
        "//app/admin/main/videoup/model/archive:go_default_library",
        "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
        "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
    ],
)

go_library(
    name = "go_default_library",
    srcs = [
        "addit.go",
        "archive.go",
        "config.go",
        "dao.go",
        "delay.go",
        "first_pass.go",
        "flow.go",
        "forbid.go",
        "hbase.go",
        "history.go",
        "mosaic.go",
        "new_video.go",
        "oper.go",
        "porder.go",
        "recheck.go",
        "redis.go",
        "stats.go",
        "tag.go",
        "task.go",
        "task_consumer.go",
        "task_dispatch.go",
        "task_oper_history.go",
        "task_qa_video.go",
        "task_state.go",
        "task_weight_config.go",
        "type.go",
        "user_card.go",
        "video.go",
        "video_audit.go",
        "video_history.go",
        "watermark.go",
    ],
    importpath = "go-common/app/admin/main/videoup/dao/archive",
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
    deps = [
        "//app/admin/main/videoup/conf:go_default_library",
        "//app/admin/main/videoup/model/archive:go_default_library",
        "//app/admin/main/videoup/model/utils:go_default_library",
        "//library/cache/redis:go_default_library",
        "//library/database/hbase.v2:go_default_library",
        "//library/database/sql:go_default_library",
        "//library/log:go_default_library",
        "//library/net/http/blademaster:go_default_library",
        "//library/time:go_default_library",
        "//library/xstr:go_default_library",
        "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
